package com.yunji.product.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunji.common.annotation.Excel;
import com.yunji.common.base.BaseDelFlagDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * @Package com.yunji.product.domain
 * FileName:	Product.java
 * Copyright:	Copyright © 2024 云集互联 All Rights Reserved
 * Company:		云集互联
 * @version: 1.0
 * @since: JDK 1.8.0_202
 * Create at:   2024-04-01 01:38:09
 * Description:
 * 商品信息
 * Modification History:
 * Author					Date						Version			Description
 * --------------------------------------------------------------------------------
 * HuaAo				2024-04-01 01:38:09			1.0				1.0 Version
 */
@ApiModel(value = "product", description = "商品信息")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("product")
public class ProductDO extends BaseDelFlagDO implements Serializable {
    private static final long serialVersionUID = 3666463647340786621L;

    @Excel(name = "商品ID", width = 15)
    @TableId(type = IdType.AUTO)
    private Long id;

    @Excel(name = "上架状态", readConverterExp = "0=下架,1=上架", width = 15)
    @ApiModelProperty("上架状态：0-&gt;下架;1-&gt;上架")
    private Long publishStatus;

    @ApiModelProperty("sku")
    private String sku;

    @Excel(name = "商品类型", width = 15)
    @ApiModelProperty("商品类型")
    private Integer productType;

    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("商品描述")
    private String subTitle;

    @Excel(name = "销量", width = 15)
    @ApiModelProperty("销量")
    private Long sale;

    @Excel(name = "销售额", width = 15)
    @ApiModelProperty("销售额")
    private BigDecimal saleAmount;

    @Excel(name = "销售价", width = 15)
    @ApiModelProperty("销售价")
    private BigDecimal price;

    @Excel(name = "成本价", width = 15)
    @ApiModelProperty("成本价")
    private BigDecimal costPrice;

    @Excel(name = "折扣价", width = 15)
    @ApiModelProperty("折扣价")
    private BigDecimal discountPrice;

    @ApiModelProperty("商品厚度")
    private BigDecimal productHeight;

    @ApiModelProperty("底部高度")
    private BigDecimal bottomHeight;

    @Excel(name = "最高折扣价", width = 15)
    @ApiModelProperty("最高折扣价")
    private BigDecimal maxDiscountPrice;

    @Excel(name = "最小折扣价", width = 15)
    @ApiModelProperty("最小折扣价")
    private BigDecimal minDiscountPrice;

    @Excel(name = "单位（数量）")
    @ApiModelProperty("单位（数量）")
    private Integer unitAmount;

    @ApiModelProperty("授权类型（0-指定代理商 1-全部授权）")
    private Integer grantType;

    @ApiModelProperty("关键词")
    private String keywords;

    @Excel(name = "备注", width = 15)
    @ApiModelProperty("备注")
    private String note;

    @ApiModelProperty("画册图片，连产品图片限制为5张，以逗号分割")
    private String albumPics;

    @ApiModelProperty("商品详情网页内容")
    private String detailHtml;

    @ApiModelProperty("重要属性")
    private String importantAttributes;

    @ApiModelProperty("其他属性")
    private String otherAttributes;

    @ApiModelProperty("单位ID")
    private Long unitId;

    @ApiModelProperty("品牌ID")
    private Long brandId;

    @Excel(name = "排序", width = 15)
    @ApiModelProperty("排序")
    private Long sort;

}
